package com.ym.b2b.wsBuyer.dao.impl;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ym.b2b.commons.dao.BaseDao;
import com.ym.b2b.wsBuyer.dao.WebServiceBuyerDao;
import com.ym.b2b.wsBuyer.sqlBean.WebServiceBuyer;

@Repository
public class WebServiceBuyerDaoImpl<T> extends BaseDao<T> implements WebServiceBuyerDao {

	@Override
	public void insertBuyer(WebServiceBuyer buyer) throws DataAccessException {
		insert("WebServiceBuyer.insertBuyer", buyer);
	}

	@Override
	public void insertBuyerAddress(WebServiceBuyer buyer)
			throws DataAccessException {
		insert("WebServiceBuyer.insertBuyerAddress", buyer);

	}

	@Override
	public void insertBuyerUser(WebServiceBuyer buyer)
			throws DataAccessException {
		insert("WebServiceBuyer.insertBuyerUser", buyer);
	}

}
